export default class Model {
    data: any;
    constructor(data: any) {
        this.data = data || {};
    }
    set(key: string, value: any) {
        this.data[key] = value;
    }
    get(key: string) {
        return this.data[key];
    }
    getData() {
        return this.data;
    }
    setData(data: any) {
        this.data = data || {};
    }
}